package com.lemeng.service;

import com.lemeng.entity.PageResult;
import com.lemeng.pojo.Address;

import java.util.List;
import java.util.Map;

public interface AddressService {

    public List<Address> findAll();

    public PageResult<Address> findPage(Integer page, Integer size);

    public List<Address> findList(Map<String, Object> serchMap);

    public PageResult<Address> findPage(Integer page, Integer size, Map<String, Object> serchMap);

    public Address findById(Integer id);

    void add(Address address);

    void update(Address address);

    void delete(Integer id);
}
